﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" xmlns:local="clr-namespace:HugeFlow" x:Class="HugeFlow.MainPage"
    d:DesignWidth="815.825" d:DesignHeight="628.218">
    <UserControl.DataContext>
        <local:MainPageViewModel />
    </UserControl.DataContext>
    <Grid x:Name="LayoutRoot">

  	<Grid Margin="20">
  		<Grid.ColumnDefinitions>
  			<ColumnDefinition Width="*"/>
  			<ColumnDefinition Width="320"/>
  		</Grid.ColumnDefinitions>
  		<Rectangle Fill="#FF7C7C7C" Stroke="Black" StrokeThickness="0" RadiusX="10" RadiusY="10" Grid.ColumnSpan="2">
  			<Rectangle.Effect>
  				<DropShadowEffect/>
  			</Rectangle.Effect>
  		</Rectangle>
  		<TextBlock Height="42" Margin="16,14,-129,0" VerticalAlignment="Top" FontSize="26.667" Foreground="White" Text="FlickrMania" TextWrapping="Wrap">
  			<TextBlock.Effect>
  				<DropShadowEffect ShadowDepth="1"/>
  			</TextBlock.Effect>
  		</TextBlock>
  		<Grid Margin="20,60,0,20" Background="#FF303030">
  			<Image Source="{Binding CurrentPhoto.LargeImage, Mode=OneWay}"/>
  		</Grid>
  		<ListBox Margin="20,60,20,20" ItemContainerStyle="{StaticResource ListBoxItemStyle1}" Style="{StaticResource ListBoxStyle1}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Visible" Grid.Column="1" ItemsSource="{Binding Favorites, Mode=OneWay}"/>
  		<local:ImageSearchPanel VerticalAlignment="Top" MouseLeftButtonUp="ImageSearchPanel_MouseLeftButtonUp" Grid.Column="1" HorizontalAlignment="Right" RenderTransformOrigin="0.5,0.5">
  			<local:ImageSearchPanel.RenderTransform>
  				<TransformGroup>
  					<ScaleTransform/>
  					<SkewTransform/>
  					<RotateTransform/>
  					<TranslateTransform X="-30" Y="30"/>
  				</TransformGroup>
  			</local:ImageSearchPanel.RenderTransform>
  		</local:ImageSearchPanel>
  		<local:ImageSearchPanel VerticalAlignment="Top" MouseLeftButtonUp="ImageSearchPanel_MouseLeftButtonUp" Grid.Column="1" HorizontalAlignment="Right" RenderTransformOrigin="0.5,0.5">
  			<local:ImageSearchPanel.RenderTransform>
  				<TransformGroup>
  					<ScaleTransform/>
  					<SkewTransform/>
  					<RotateTransform/>
  					<TranslateTransform X="-50" Y="50"/>
  				</TransformGroup>
  			</local:ImageSearchPanel.RenderTransform>
  		</local:ImageSearchPanel>
  	</Grid>

  </Grid>
</UserControl>
